﻿#ifndef EMAILWINDOW_H
#define EMAILWINDOW_H

#include "qsqldatabase.h"
#include <QWidget>
#include<QDialog>
#include"email.h"
#include"global.h"
extern QSqlDatabase db;
namespace Ui {
class EmailInterface;
}

class EmailWIndow : public QWidget
{
    Q_OBJECT

public:
    explicit EmailWIndow(QWidget *parent = nullptr);
    ~EmailWIndow();
    void listAll();

private slots:
//    void on_esc_clicked();

//    void on_send_clicked();

    void on_esc_clicked();

    void on_send_clicked();

    void on_select_all_clicked();

    void on_not_all_clicked();

    void on_pushButton_clicked();

    void on_note_clicked();

private:
    Ui::EmailInterface *ui;
    static QRegularExpression temp;
};

#endif // EMAILWINDOW_H
